package com.boot4g.admin.module.sys.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.boot4g.entity.SysUserTokenEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * 系统用户Token
 * 
 * @author chenjinjie
 * @email guangyaoliangzijie@163.com
 * @date 2017-03-23 15:22:07
 */
@Mapper
public interface SysUserTokenDao extends BaseMapper<SysUserTokenEntity> {
    
    SysUserTokenEntity queryByUserId(Long userId);

    SysUserTokenEntity queryByToken(String token);

    public void updateEntity(SysUserTokenEntity token);
    public void save(SysUserTokenEntity token);
}
